<?php

$binding = array(
				 
	'first_name' => array(
		'type' => 'text',
		'label' => 'First Name',
		'validation' => array(
			array('rule'=>'required', 'message'=>'Please provide first name'),
		)
	),
	
	'last_name' => array(
		'type' => 'text',
		'label' => 'Last Name',
		'validation' => array(
			array('rule'=>'required', 'message'=>'Please provide last name')					  
		)
	),
			 

	'email' =>array(

		'type' => 'email',

		'label' => 'Email Address',

		'validation' => array(

			array('rule'=>'required', 'message'=>'Please provide your email address'),

			array('rule'=>'valid_email', 'message'=>'Please provide a valid email address'),

			array('rule'=>'unique_email', 'message'=>'This email already exists')

		)

	),

	'password' => array(

		'type' => 'password',

		'label' => 'Password',

		'validation' =>array(

			array('rule'=>'required', 'message'=>'Please provide a password'),

			array('rule'=>'matches', 'param'=>'$password_confirm', 'message'=>'Passwords do not match')

			

		)

	),

	'password_confirm' => array(

		'type' => 'password',

		'label' => 'Confirm Password',

		'save' => false

	),

	'user_type_id' => array(

		'type' => 'select',

		'data' => 'user_types',

		'label' => 'User type',

	)
	





);

?>